<template>
  <div class="page">
    <div class="van-nav-head">
      <van-nav-bar title="tools_button" left-arrow @click-left="$router.go(-1)" :fixed="true"/>
    </div>
    <ok-movable custom-class="drag-fixed"
                x="80vw"
                y="80vh">
        <div>
          <ok-tools-button></ok-tools-button>
        </div>
    </ok-movable>

    <div class="api padding-sm margin-bottom-sm">
      <div class="demo-card">
        <div class="demo-card-title">API</div>
        <div class="demo-card-body">

        </div>
      </div>
    </div>
  </div>
</template>

<script type="es6">
export default {
  inject: ['reload'], /**reload(callback);对应provide中的数组值*/
  name: "tools_button",
  data() {
    return {}
  },
  mounted() {

  },
  methods: {
    onFixed() {
      this.$toast("fixed");
    }
  }
}
</script>

<style lang="scss" scoped>
  .page{
    width: 100%;
    background: #FFFFFF;
    min-height: 100vh;
  }
  .drag-fixed {
    width: 100vw;
    position: fixed;
    height: calc(100vh - 46px);
    top: 46px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    background: transparent;
  }
</style>